<?php

namespace projetPHP\idkdoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * projetPHP\idkdoBundle\Entity\Commentaire
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="projetPHP\idkdoBundle\Entity\CommentaireRepository")
 */
class Commentaire
{
    /**
     * @ORM\ManyToOne(targetEntity="projetPHP\idkdoBundle\Entity\Compte")
     */
    private $compte;

    /**
     * @ORM\ManyToOne(targetEntity="projetPHP\idkdoBundle\Entity\Cadeau")
     */
    private $cadeau;

    /**
     * @ORM\ManyToOne(targetEntity="projetPHP\idkdoBundle\Entity\Commentaire")
     */
    private $commentaire;

    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer $note
     *
     * @ORM\Column(name="note", type="integer")
     */
    private $note;

    /**
     * @var text $texte
     *
     * @ORM\Column(name="texte", type="text")
     */
    private $texte;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @var datetime $dateCommentaire
     *
     * @ORM\Column(name="dateCommentaire", type="datetime")
     */
    private $dateCommentaire;

    /**
     * Set note
     *
     * @param integer $note
     */
    public function setNote($note)
    {
        $this->note = $note;
    }

    /**
     * Get note
     *
     * @return integer 
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set texte
     *
     * @param text $texte
     */
    public function setTexte($texte)
    {
        $this->texte = $texte;
    }

    /**
     * Get texte
     *
     * @return text 
     */
    public function getTexte()
    {
        return $this->texte;
    }

    /**
     * Get dateCommentaire
     *
     * @return datetime 
     */
    public function getDateCommentaire()
    {
        return $this->dateCommentaire;
    }


    /**
     * Set dateCommentaire
     *
     * @param datetime $dateCommentaire
     */
    public function setDate($dateCommentaire)
    {
        $this->dateCommentaire = $dateCommentaire;
    }


    public function getCadeau(){
        return $this->cadeau;
    }

    public function getCompte(){
        return $this->compte;
    }

    public function setCompte($compte){
        $this->compte = $compte;
    }

    public function setCadeau($cadeau){
        $this->cadeau = $cadeau;
    }

    public function getCommentaire(){
        return $this->commentaire;
    }

    public function setCommentaire($commentaire){
        $this->commentaire = $commentaire;
    }
}